﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html lang="zh">
<head>
    <meta name="viewport" http-equiv="content-type" content="text/html;charset=utf-8" />
    <title>Left</title>
    <link href="~/Content/sharestyle.css" rel="stylesheet" />
    <link href="~/Content/main.css" rel="stylesheet" />
    <script src="~/scripts/jquery-1.7.1.min.js"></script>
    <script type="text/javascript">
        function ShowMenuList(id) {
            var objectobj = document.getElementById(id);
            var dtObj = document.getElementById("dt_" + id);
            if (objectobj.style.display == "none") {
                objectobj.style.display = "";
                dtObj.setAttribute("class", "head2");
                //其余菜单折叠
                $(dtObj).parent().parent().find("dt").not(dtObj).attr("class", "head1");//折叠
                $(objectobj).parent().parent().find("ul").not(objectobj).css("display", "none");
            }
            else {
                objectobj.style.display = "none";
                dtObj.setAttribute("class", "head1");
            }
        }

        //控制菜单模块的显示和隐藏
        function showDivMenu(divId) {
            $("#" + divId).css("visibility", "visible");
            $("#" + divId).siblings("div").css("visibility", "hidden");
        }

        $(function () {
            $(".box_n li a").click(function () {
                $(".box_n li a").removeClass("nav_sub");
                $(this).addClass("nav_sub");
            });
        });

        function goNewPage(url, name) {
            self.parent.frames["mainFrame"].addTab(url, name);
        }
    </script>
    <style type="text/css">
        body{
            margin:0px;
            padding:0px;
        }
    </style>
</head>
<body>
    <div class="leftbar" id="divOrder">
        <dl>
            <dt class="head2" id="dt_ulOrder" onclick='ShowMenuList("ulOrder")'>类别管理</dt>
            <ul class="box_n" id="ulOrder">
                <li><a href="#" onclick="goNewPage('/InvenTypes/Index', '存货分类')">存货分类</a></li>
                <li><a href="#" onclick="goNewPage('/DepartmentTypes/Index', '部门分类')">部门分类</a></li>
            </ul>
        </dl>
        <dl>
            <dt class="head1" id="dt_ulLading" onclick='ShowMenuList("ulLading")'>信息管理</dt>
            <ul class="box_n" id="ulLading" style="display:none;">
                <li><a href="#" onclick="goNewPage('/Record/Inven', '存货信息')">存货信息</a></li>
                <li><a href="#" onclick="goNewPage('/Record/Customer', '客户信息')">客户信息</a></li>
                <li><a href="#" onclick="goNewPage('/Record/Employees', '员工档案')">员工信息</a></li>
            </ul>
        </dl>
    </div>
    <div class="leftbar" id="divFinancial">
        <dl>
            <dt id="dt_ulChannel" class="head2" onclick='ShowMenuList("ulChannel")'>生产管理</dt>
            <ul class="box_n" id="ulChannel">
                <li><a href="#" onclick="goNewPage('/Production/proPlan', '生产计划')">生产计划</a></li>
                <li><a href="#" onclick="goNewPage('/Production/proItem', '生产入库')">生产入库</a></li>
            </ul>
        </dl>
        <dl>
            <dt id="dt_ulFinancial" class="head1" onclick="ShowMenuList('ulFinancial')">销售管理</dt>
            <ul class="box_n" id="ulFinancial" style="display:none;">
                <li><a href="#" onclick="goNewPage('/Production/selOrder', '销售订单')">销售订单</a></li>
                <li><a href="#" onclick="goNewPage('/Production/selGather', '销售收款单')">销售收款单</a></li>
            </ul>
        </dl>
    </div>
    <div class="leftbar" id="divCustomer">
        <dl>
            <dt class="head2" id="dt_ulOrder" onclick='ShowMenuList("ulCustomer")'>客户信息</dt>
            <ul class="box_n" id="ulCustomer">
                <li><a href="#" onclick="goNewPage('/Service/ConnRecords', '联系记录')">联系记录档案</a></li>
                <li><a href="#" onclick="goNewPage('/Service/afterServer', '售后服务')">售后服务档案</a></li>
            </ul>
        </dl>
    </div>
    <div class="leftbar" id="divAdmin">
        <dl>
            <dt class="head2" id="dt_ulOrder" onclick='ShowMenuList("ulAdmin")'>系统管理</dt>
            <ul class="box_n" id="ulAdmin">
                <li><a href="#" onclick="goNewPage('/Users/UserInfo', '操作员管理')">操作员管理</a></li>
                <li><a href="#" onclick="goNewPage('/Users/passwordView', '修改密码')">密码修改</a></li>
            </ul>
        </dl>
    </div>
</body>
</html>
